package com.cms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cms.dao.CommentDao;
import com.cms.entity.Article;
import com.cms.entity.Comment;
import com.cms.service.CommentService;

@Service("commentService")
public class CommentServiceImpl implements CommentService {


	@Resource
	private CommentDao commentDao;
	@Override
	public List<Comment> getComments(Article article) {
		// TODO Auto-generated method stub
		return commentDao.getComments(article);
	}

	@Override
	public Integer add(Comment comment) {
		// TODO Auto-generated method stub
		return commentDao.add(comment);
	}

}
